package com.example.mydemo1.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mydemo1.entity.common.PageParams;
import com.example.mydemo1.entity.common.PageResult;
import com.example.mydemo1.entity.common.AppResp;
import com.example.mydemo1.entity.vo.SysRoleVO;
import com.example.mydemo1.entity.po.SysRole;

import java.util.List;

/**
 * <p>
 * 角色表 业务层接口类
 * </p>
 *
 * @createTime: 2023/09/16 14:29:44
 */
public interface SysRoleService extends IService<SysRole> {

    AppResp<PageResult<SysRoleVO>> page(PageParams<SysRoleVO> pageParams);

    AppResp<SysRoleVO> queryById(String sysRoleId);

    AppResp<Void> add(SysRoleVO sysRoleVO);

    AppResp<Void> delById(String sysRoleId);

    AppResp<Void> modify(SysRoleVO sysRoleVO);

    AppResp<Void> batchAdd(List<SysRoleVO> sysRoleVos);

    AppResp<Void> batchModify(List<SysRoleVO> sysRoleVos);

    AppResp<Void> batchDelete(List<SysRoleVO> sysRoleVos);

}
